<#assign module="marketing"/>

<@override name="header">
</@override>

<@override name="body">
<div class="row">
 	<div class="col-xs-12">
 		<button class="pull-right btn btn-primary" onclick="window.location='${ctx}/couponrule/add';"><i class="icon-plus"></i>&nbsp;添加优惠劵规则</button>
	</div>
</div>

<div class="margin-top">
</div>

<div class="tabta-content">  	
	<table class="table table-condensed table-striped">
		<tbody>
			<tr>
				<th>操作</th>
				<th>简介</th>
				<th>状态</th>
				<th>编码</th>
				<@shiro.isMainCompany>
				<th>所属公司</th>
				</@shiro.isMainCompany>
				<th>优惠券类型</th>
				<th>服务类型</th>
				<th>详细分类</th>
				<th>数量</th>
				<th>每人限量</th>
				<th>开始时间</th>
				<th>结束时间</th>
				<th>操作</th>
			</tr>
		</tbody>
	</table>
	<ul class="pagination pull-left pagination-sm pageshow" id="pageshow" style="display:none;">
		<li><a></a></li>
	</ul>
	<ul class="pagination pull-left pagination-sm pagedata" id="pagedata" style="display:none;">
    </ul>
</div>
</@override>
<@override name="footer">
<script type="text/javascript">
		window.daijia = {
			ctx:'${ctx}',
			userId:'<@shiro.principal property='id'/>'
		};
	var mainCompany=false;
	<@shiro.isMainCompany>
		mainCompany=true;
	</@shiro.isMainCompany>
</script>
<script src="${ctx}/assets/js/pushmessage.js"></script>
<script src="${ctx}/assets/js/jquery.paging.min.js"></script>
<script src="${ctx}/assets/js/couponrule/list.js"></script>
</@override>
<@extends name="../layout.ftl"/>